import { createWebHistory, createRouter } from 'vue-router'

import Home from '../vise/home/home.vue'
import Gwc from '../vise/home/gwc.vue'
import My from '../vise/home/my.vue'
import Ss from '../vise/home/ss.vue'
import Fw from '../vise/home/fw.vue'
import Login from '../vise/login.vue'
const routes = [
    { path: '/', redirect: '/home' },
    {
        path: '/home',
        component: Home,
        children: [
            {
                path: 'gwc',
                component: Gwc,
            },
            {
                path: 'my',
                component: My,
            },
            {
                path: 'ss',
                component: Ss,
            },
            {
                path: 'fw',
                component: Fw,
            },
        ]
    },
    {
        path: '/login',
        component: Login
    },
    
]

export const router = createRouter({
    history: createWebHistory(),
    routes,
})